# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

# Don't build manual tests when targeting iOS.
if(UIKIT)
    return()
endif()

add_subdirectory(corelib)
add_subdirectory(filetest)
# diaglib is broken in dev due to missing
# QtOpenGL/QGLFunctions headers
# add_subdirectory(embeddedintoforeignwindow)
# add_subdirectory(foreignwindows)
add_subdirectory(gestures)
if (QT_FEATURE_graphicsframecapture)
    add_subdirectory(graphicsframecapture)
endif()
add_subdirectory(highdpi)
add_subdirectory(keyevents)
if(QT_FEATURE_opengl)
  add_subdirectory(lance)
endif()
add_subdirectory(mouseevents)
add_subdirectory(qcursor)
add_subdirectory(qdesktopservices)
add_subdirectory(qdnslookup)
add_subdirectory(qgraphicsitem)
add_subdirectory(qgraphicslayout/flicker)
add_subdirectory(qhttpnetworkconnection)
add_subdirectory(qimagereader)
add_subdirectory(qlocale)
add_subdirectory(qmimedatabase)
add_subdirectory(qnetworkaccessmanager/qget)
add_subdirectory(qnetworkinformation)
if (QT_FEATURE_openssl AND UNIX)
    add_subdirectory(qnetworkreply)
endif()
if(QT_FEATURE_permissions)
    add_subdirectory(permissions)
endif()
add_subdirectory(qstorageinfo)
add_subdirectory(qscreen)
add_subdirectory(qscreen_xrandr)
add_subdirectory(qsysinfo)
add_subdirectory(qtabletevent)
add_subdirectory(qtexteditlist)
add_subdirectory(qtexttableborders)
add_subdirectory(qtbug-8933)
add_subdirectory(qtbug-52641)
add_subdirectory(qtouchevent)
add_subdirectory(touch)
add_subdirectory(qwidget_zorder)
add_subdirectory(repaint)
add_subdirectory(socketengine)
add_subdirectory(textrendering)
add_subdirectory(widgets)
add_subdirectory(windowflags)
add_subdirectory(windowgeometry)
add_subdirectory(windowmodality)
add_subdirectory(widgetgrab)
if(QT_FEATURE_xcb)
    add_subdirectory(xembed)
endif()
add_subdirectory(xmlstreamlint)
add_subdirectory(shortcuts)
add_subdirectory(dialogs)
add_subdirectory(windowmask)
add_subdirectory(windowtransparency)
add_subdirectory(unc)
add_subdirectory(qtabbar)
add_subdirectory(rhi)
if(UNIX)
    add_subdirectory(network_remote_stresstest)
    add_subdirectory(network_stresstest)
endif()
if(QT_FEATURE_openssl)
    add_subdirectory(qssloptions)
endif()
if(QT_FEATURE_opengl)
    # add_subdirectory(qopengltextureblitter) # TODO: broken in dev
endif()
if(QT_FEATURE_egl AND QT_FEATURE_opengl)
    # add_subdirectory(qopenglcontext) # TODO: broken in dev
endif()
if(QT_FEATURE_vulkan)
    add_subdirectory(qvulkaninstance)
endif()

if(ANDROID)
    add_subdirectory(android/contenturis)
endif()
